<?php
namespace app\index\controller;
header("Access-Control-Allow-Origin: *");

use app\common\controller\HomeBase;
use think\Db;

class Area extends HomeBase
{
    protected function _initialize(){
        parent::_initialize();
    }

    public function index($id)
    {
        if($id){
           $area_list = Db('area')->where('parent_id',$id)->select();
           $this->apiSuccess($area_list); 
        }
        
    }

}
